<template>
	<view class="container">
		<view class="s-top">
			<image src="../../static/ss.png" mode="aspectFill"></image>
			<view class="t">
				已创建完成
			</view>
			<view class="info">
				您可跳转至报价管理发布上线您的报价
				<!-- 您可在 <text>【报价列表】</text>查看您发布的报价 -->
			</view>
		</view>
		<view class="btn" @click="gohome">
			去查看
		</view>
		
		<view class="tss">
			关注公众号接受新订单/新出价提醒
			<span @click="$refs.popup.open()">前往公众号</span>
		</view>
		
		<uni-popup ref="popup" type="center">
			<view class="popup">
				<view class="title">
					关注公众号接收新订单/新出价提醒
				</view>
				<image src="/static/gzh.jpg" show-menu-by-longpress mode=""></image>
				<view class="ts">
					长按二维码关注
				</view>
				<view class="btns" @click="close">
					我知道了
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		onLoad() {
			setTimeout(()=>{
				this.$refs.popup.open()
			},100)
		},
		methods: {
			close(){
				this.$refs.popup.close()
			},
			gohome() {
				uni.switchTab({
					url: '/pages/user/user'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	@color: #FF6F07;
	.popup{
		width: 640rpx;
		height: 600rpx;
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		padding: 52rpx 100rpx;
		box-sizing: border-box;
		text-align: center;
		.title{
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #11192D;
			text-align: center;
		}
		image{
			width: 260rpx;
			height: 260rpx;
			margin-top: 30rpx;
		}
		.ts{
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #979797;
			text-align: center;
			margin-top: 10rpx;
		}
		.btns{
			width: 320rpx;
			height: 90rpx;
			background: linear-gradient( 270deg, #FF6F07 0%, #FFA666 100%);
			border-radius: 20rpx 20rpx 20rpx 20rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 90rpx;
			margin: 30rpx auto;
		}
	}
	.container {
		padding: 80rpx 30rpx;

		.btn {
			width: 100%;
			height: 90rpx;
			line-height: 90rpx;
			font-size: 32rpx;
			color: #fff;
			text-align: center;
			background: linear-gradient(270deg, #FF6F07 0%, #FFA666 100%);
			border-radius: 20rpx;
			margin: 80rpx auto 0;
		}

		.s-top {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			text-align: center;

			image {
				width: 120rpx;
				height: 120rpx;
			}

			.t {
				line-height: 60rpx;
				height: 60rpx;
				margin-top: 40rpx;
				font-weight: bold;
				font-size: 40rpx;
				color: #000000;
				text-align: center;

			}

			.info {
				margin-top: 26rpx;
				line-height: 80rpx;
				height: 80rpx;
				font-size: 24rpx;
				color: #979797;

				text {
					color: @color;
					padding: 0 5rpx;
				}
			}
		}
		.tss{
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #979797;
			text-align: center;
			margin-top: 30rpx;
			span{
				color: #FF6F07;
			}
		}
	}
</style>